	(function ($) {
	'use strict';
	
	var NavBar = Backbone.View.extend({
		tagName: "div",
		id:"NavBar",
		className: "NavBar",
		initialize: function () {
			this.views = [];
		},
		addOneNavBarModel:function(dayDes){
			// console.log("@@@@@ Node_3_1 addModel");
			var navBarViewId = "NavBar_"+dayDes.id;
			var dayView=new $_V.NavBarItem({id:navBarViewId,model:dayDes});
			this.views.push(dayView);
			return this;
			
		},
		render: function() {
		
			var views = this.views;
			this.$el.html("");

            var navBarLeft =new $_V.NavBarLeft();
            this.$el.append(navBarLeft.render().el);
			for (var v in views){
				this.$el.append(views[v].render().el);
			}

            var navBarRight =new $_V.NavBarRight();
            this.$el.append(navBarRight.render().el);

			// this.reWidthSize();
			return this;
		},
		reWidthSize:function(){
				
				// var views = this.views;
				// this.$el.html("");
				// for (var v in views){
					// views[v].reWidthSize();
				// }
				// var widths = 0;
				// var nodes = this.$el.find(".Day").each(function(i) {
							// widths += $(this).width();
						// });
						
				// this.$el.css({
					// width: widths
				// });
		}
	});
	$_V.NavBar = NavBar;
})(jQuery);	